package com.the4man.framework.util.dialect;

/**
 * Created by lenovo on 2017/12/12.
 */
public class Dialect {
    public Dialect() {
    }

    public boolean supportsLimit() {
        return false;
    }

    public boolean supportsLimitOffset() {
        return this.supportsLimit();
    }

    public String getLimitString(String sql, int offset, int limit) {
        return this.getLimitString(sql, offset, Integer.toString(offset), limit, Integer.toString(limit));
    }

    public String getLimitString(String sql, int offset, String offsetPlaceholder, int limit, String limitPlaceholder) {
        throw new UnsupportedOperationException("paged queries not supported");
    }

    public String getOrderByString(String sql, String sortfiled, String orderby) {
        throw new UnsupportedOperationException("paged queries not supported");
    }
}
